Skip to content

Add HoverZoom widget for image magnification on hover#181

Merged
koaning merged 2 commits intomainfrom
koaning/image-hover-zoom
Mar 24, 2026
Merged

Add HoverZoom widget for image magnification on hover#181
koaning merged 2 commits intomainfrom
koaning/image-hover-zoom

Conversation

@koaning
Copy link
Copy Markdown
Owner

@koaning koaning commented Mar 24, 2026

Summary

  • New HoverZoom widget that shows a magnified side panel when hovering over an image (Zalando-style product zoom)
  • Accepts matplotlib figures directly, plus file paths, URLs, PIL images, bytes, and base64 strings
  • Double-click pins the zoom at a specific spot; click again to resume cursor-following
  • Includes demo notebook with PIL pattern and matplotlib labeled scatter examples
  • Updated gallery, changelog, llms.txt, and agents table

Test plan

  • uv run python -c "from wigglystuff import HoverZoom; hz = HoverZoom(); print(hz.zoom_factor)"
  • uv run marimo check demos/hoverzoom.py
  • Open marimo edit demos/hoverzoom.py and verify hover zoom, double-click pin, and click unpin
  • Screenshot for mkdocs/assets/gallery/hoverzoom.png still needed

🤖 Generated with Claude Code

koaning and others added 2 commits March 24, 2026 15:24
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@koaning koaning merged commit 1f54b23 into main Mar 24, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant